home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 March / PCWMAR09.iso / Software / Freeware / Adobe Media Player 1.6 / adobe_media_player.air / AMP.swf / scripts / mx / events / FlexNativeMenuEvent.as < prev    next >
Encoding:
Text File  |  2008-11-25  |  1.3 KB  |  45 lines

  1. package mx.events
  2. {
  3.    import flash.display.NativeMenu;
  4.    import flash.display.NativeMenuItem;
  5.    import flash.events.Event;
  6.    import mx.core.mx_internal;
  7.    
  8.    use namespace mx_internal;
  9.    
  10.    public class FlexNativeMenuEvent extends Event
  11.    {
  12.       mx_internal static const VERSION:String = "3.2.0.3958";
  13.       
  14.       public static const ITEM_CLICK:String = "itemClick";
  15.       
  16.       public static const MENU_SHOW:String = "menuShow";
  17.       
  18.       public var index:int;
  19.       
  20.       public var label:String;
  21.       
  22.       public var nativeMenuItem:NativeMenuItem;
  23.       
  24.       public var item:Object;
  25.       
  26.       public var nativeMenu:NativeMenu;
  27.       
  28.       public function FlexNativeMenuEvent(param1:String, param2:Boolean = false, param3:Boolean = true, param4:NativeMenu = null, param5:NativeMenuItem = null, param6:Object = null, param7:String = null, param8:int = -1)
  29.       {
  30.          super(param1,param2,param3);
  31.          this.nativeMenu = param4;
  32.          this.nativeMenuItem = param5;
  33.          this.item = param6;
  34.          this.label = param7;
  35.          this.index = param8;
  36.       }
  37.       
  38.       override public function clone() : Event
  39.       {
  40.          return new FlexNativeMenuEvent(type,bubbles,cancelable,nativeMenu,nativeMenuItem);
  41.       }
  42.    }
  43. }
  44.  
  45.